package ru.kest.torrentwatchlist.entity;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("NNM")
public class NnmTorrent extends Torrent {

    private String nnmId;

    public String getNnmId() {
        return nnmId;
    }

    public void setNnmId(String nnmId) {
        this.nnmId = nnmId;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
